<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>角色和用户管理</title>
<link href="css/reset.css" rel="stylesheet" type="text/css"/>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
		function check(form1){
				var name = document.getElementById("roleInfoName");
				if(name.value==""){
					alert("角色名称不能为空！")
					name.focus();
					return false;
				}
		}
</script>
</head>

<body>
<form action="<%=request.getContextPath()%>/RoleInfo.do?method=add" name="form1" method="post" onsubmit="return check(form1)">
<table width="80%">
  <tr>
    <td class="bg_blue" align="right" ><font color="red">*</font>&nbsp;&nbsp;角色名称：</td>
    <td class="nohover"><input type="text" name="roleInfoName" maxlength="50">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue" align="right" >角色描述：</td>
    <td class="nohover"><input type="text" name="roleInfoDescription" maxlength="200">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="nohover"><input class="buttonsubmit" type="submit" value="提交" >
    &nbsp;<input class="buttonreset" type="reset" value="重置"> 
    <input class="buttonreturn" type="button" value="返回" onClick="javascript:window.location.href='<%=request.getContextPath()%>/RoleInfo.do?method=list'"></td>
  </tr>
</table>
</form>
</body>
</html>
